//
//  NIghtCell.m
//  FloatClouds
//
//  Created by 黄威 on 16/9/17.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "NIghtCell.h"

@implementation NIghtCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    
    
    if (self) {
        
        self.labelOfInformation = [[UILabel alloc]init];
        self.labelOfInformation.font = [UIFont fontWithName:@"beirut" size:16];
        [self.contentView addSubview:self.labelOfInformation];
        self.switchOfCell = [[UISwitch alloc]init];
        [self.contentView addSubview:self.switchOfCell];
        
    }
    
    return self;
    
    
}

- (void)layoutSubviews{
    
    [super layoutSubviews];
    
    self.labelOfInformation.frame = CGRectMake(0, 0, 100, 50);
    
    self.switchOfCell.frame = CGRectMake(self.contentView.bounds.size.width *0.8, 10, self.contentView.bounds.size.width *0.2, 50);
    
    
}

@end
